<?php

class Database extends PDO{
	private $dns = "mysql:host=localhost;dbname=codigogm";
	private $user = "root";
	private $pass = "";
	
	function __construct(){
		try{
			parent::__construct($this->dns,$this->user,$this->pass);	
		} catch (PDOException $e){
			echo "Erro: ".$e->getMessage();	
			exit();
		}
	}
}

?>